// 
// Decompiled by Procyon v0.5.36
// 

package com.cyberfend.cyfsecurity;

import java.util.*;
import android.annotation.*;
import android.os.*;
import android.view.accessibility.*;
import android.view.*;

final class aa extends java.util.Observable implements android.view.Window.Callback
{
    private final android.view.Window.Callback a;
    
    aa(final android.view.Window.Callback a) {
        this.a = a;
    }
    
    public final boolean dispatchKeyEvent(final android.view.KeyEvent event) {
        return this.a.dispatchKeyEvent(event);
    }
    
    @android.annotation.SuppressLint({ "NewApi" })
    public final android.view.ActionMode onWindowStartingActionMode(final android.view.ActionMode.Callback callback, final int i) {
        return this.a.onWindowStartingActionMode(callback, i);
    }
    
    @android.annotation.SuppressLint({ "NewApi" })
    public final boolean onSearchRequested(final android.view.SearchEvent searchEvent) {
        return this.a.onSearchRequested(searchEvent);
    }
    
    @android.annotation.SuppressLint({ "NewApi" })
    public final boolean dispatchKeyShortcutEvent(final android.view.KeyEvent event) {
        return this.a.dispatchKeyShortcutEvent(event);
    }
    
    public final boolean dispatchTouchEvent(final android.view.MotionEvent event) {
        switch (event.getAction() & 0xFF) {
            case 0:
                new java.lang.StringBuilder(" Action was DOWN ").append(event.toString()).append(" ").append(android.os.SystemClock.uptimeMillis());
                this.a(event, 2);
                return this.a.dispatchTouchEvent(event);
            case 5:
                new java.lang.StringBuilder("Action was pdwn ").append(event.toString());
                this.a(event, 2);
                return this.a.dispatchTouchEvent(event);
            case 2:
                new java.lang.StringBuilder("Action was MOVE ").append(event.toString());
                this.a(event, 1);
                return this.a.dispatchTouchEvent(event);
            case 1:
                new java.lang.StringBuilder("Action was UPxx ").append(event.toString()).append(" ").append(android.os.SystemClock.uptimeMillis());
                this.a(event, 3);
                return this.a.dispatchTouchEvent(event);
            case 6:
                new java.lang.StringBuilder("Action was pupx ").append(event.toString());
                this.a(event, 3);
                return this.a.dispatchTouchEvent(event);
            default:
                return this.a.dispatchTouchEvent(event);
        }
    }
    
    public final boolean dispatchTrackballEvent(final android.view.MotionEvent event) {
        return this.a.dispatchTrackballEvent(event);
    }
    
    @android.annotation.SuppressLint({ "NewApi" })
    public final boolean dispatchGenericMotionEvent(final android.view.MotionEvent event) {
        return this.a.dispatchGenericMotionEvent(event);
    }
    
    public final boolean dispatchPopulateAccessibilityEvent(final android.view.accessibility.AccessibilityEvent event) {
        return this.a.dispatchPopulateAccessibilityEvent(event);
    }
    
    public final android.view.View onCreatePanelView(final int featureId) {
        return this.a.onCreatePanelView(featureId);
    }
    
    public final boolean onCreatePanelMenu(final int featureId, final android.view.Menu menu) {
        return this.a.onCreatePanelMenu(featureId, menu);
    }
    
    public final boolean onPreparePanel(final int featureId, final android.view.View view, final android.view.Menu menu) {
        return this.a.onPreparePanel(featureId, view, menu);
    }
    
    public final boolean onMenuOpened(final int featureId, final android.view.Menu menu) {
        return this.a.onMenuOpened(featureId, menu);
    }
    
    public final boolean onMenuItemSelected(final int featureId, final android.view.MenuItem item) {
        return this.a.onMenuItemSelected(featureId, item);
    }
    
    public final void onWindowAttributesChanged(final android.view.WindowManager.LayoutParams attrs) {
        this.a.onWindowAttributesChanged(attrs);
    }
    
    public final void onContentChanged() {
        this.a.onContentChanged();
    }
    
    public final void onWindowFocusChanged(final boolean hasFocus) {
        this.a.onWindowFocusChanged(hasFocus);
    }
    
    public final void onAttachedToWindow() {
        this.a.onAttachedToWindow();
    }
    
    public final void onDetachedFromWindow() {
        this.a.onDetachedFromWindow();
    }
    
    public final void onPanelClosed(final int featureId, final android.view.Menu menu) {
        this.a.onPanelClosed(featureId, menu);
    }
    
    public final boolean onSearchRequested() {
        return this.a.onSearchRequested();
    }
    
    @android.annotation.SuppressLint({ "NewApi" })
    public final android.view.ActionMode onWindowStartingActionMode(final android.view.ActionMode.Callback callback) {
        return this.a.onWindowStartingActionMode(callback);
    }
    
    @android.annotation.SuppressLint({ "NewApi" })
    public final void onActionModeStarted(final android.view.ActionMode mode) {
        this.a.onActionModeStarted(mode);
    }
    
    private void a(final android.view.MotionEvent motionEvent, final int n) {
        try {
            ++com.cyberfend.cyfsecurity.e.j;
            com.cyberfend.cyfsecurity.d.m = (com.cyberfend.cyfsecurity.d.l = 1);
            if ((n == 1 && com.cyberfend.cyfsecurity.e.e < 50) || (n != 1 && com.cyberfend.cyfsecurity.e.f < 50)) {
                this.setChanged();
                this.notifyObservers(new com.cyberfend.cyfsecurity.ac(motionEvent, (int)((n == 1) ? 1 : 0), n));
            }
            if (com.cyberfend.cyfsecurity.d.d) {
                this.setChanged();
                this.notifyObservers(null);
            }
        }
        catch (java.lang.Exception ex) {
            com.cyberfend.cyfsecurity.f.a(ex);
        }
    }
    
    @android.annotation.SuppressLint({ "NewApi" })
    public final void onActionModeFinished(final android.view.ActionMode mode) {
        this.a.onActionModeFinished(mode);
    }
}
